//
//  Kratos_HttpConfigure.h
//  kk_framework
//
//  Created by 7yao.top on 2018/11/7.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "single.h"
NS_ASSUME_NONNULL_BEGIN

@class Kratos_Options;
///登录成功通知
extern  NSString * const Kra_kLoginSuccessNotification;
///退出SDK回调
extern  NSString * const Kra_kLogoutSDKNotification;

@interface Kratos_HttpConfigure : NSObject
singleton_h(HttpConfigure)

///公共参数
@property (nonatomic, strong, nullable) NSMutableDictionary<NSString *, id> *Kra_generalParameters;

///公共请求头
@property (nonatomic, strong, nullable) NSDictionary<NSString *, NSString *> *Kra_generalHeaders;

///服务器地址 默认：
@property (nonatomic, copy, readwrite, nonnull) NSString *Kra_generalServer;


@property (nonatomic,strong) Kratos_Options *Kra_option;



///是否为调试模式（默认 false, 当为 true 时，会输出 网络请求日志）
@property (nonatomic, readwrite) BOOL Kra_enableDebug;


/**
 添加公共请求参数
 */
+ (void)Kratos_addGeneralParameter:(NSString * _Nonnull)sKey Kratos_value:(id _Nonnull )sValue;



/**
 移除请求参数
 */
+ (void)Kratos_removeGeneralParameter:(NSString * _Nonnull)sKey;


@end
NS_ASSUME_NONNULL_END
